/*
 * =====================================================================================
 *
 *       Filename:  main.cpp
 *
 *    Description:  nop 
 *
 *        Version:  1.0
 *        Created:  12/01/2012 07:22:04 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author: fuchang.lz@taobao.com 
 *   Organization:  
 *
 * =====================================================================================
 */
#include <iostream>
#include <stdlib.h>
#include <string>
#include <time.h>
#include <vector>
#include <fstream>
#include <sstream>
#include <stdlib.h>
#include <map>
#include "ClassAOSA.h"

using namespace std;


int process() {

    map<string, ClassAOSA> data;
    ClassAOSA temp("aaa");
    data["1"] = temp;
    cout << "--->" << endl;
    data["2"] = ClassAOSA("bbb");
    cout << "--->" << endl;
    data["1"] = ClassAOSA("aaa");
    cout << "==============================================================" << endl;
    return 0;
}

int main( int argc, char **argv) {
    if(argc!= 2) {
        cout << "usage: log_file" << endl;
        return -1;
    }
    //init
    ostringstream oss;
    oss << argv[1] << ".log";
    ofstream fout(oss.str().c_str());
    cout << "=============== output to log file [" << oss.str() << "]==================" << endl;
    

    //cleanup
    fout.close();
    cout << "==> main done." << endl;

    return 0;
}
